package com.sais.manage.boot.daily.dto;

import com.sais.manage.boot.daily.entity.Sanitation;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

/**
 * 宿舍管理平台-宿舍楼保存DTO
 *
 * @author zwp
 * @date 2020/2/2
 */
@Data
@NoArgsConstructor
public class SanitationSaveDTO {

    private String ukId;
    private String roomId;
    private Double score;
    private String content;

    public Sanitation convert() {
        Sanitation sanitation = new Sanitation();
        BeanUtils.copyProperties(this, sanitation);
        return sanitation;
    }

}
